import { httpUrl } from 'api/config'
import { ajax } from 'api/axios'

export const saveData = (data) => {
  const url = `${httpUrl}/admin/home/checkIn`

  return ajax(url, data)
}

export const getPerson = () => {
  const url = `${httpUrl}/admin/rentor/list`

  return ajax(url)
}

export const getHouse = () => {
  const url = `${httpUrl}/admin/home/noRentHome`

  return ajax(url)
}

export const getTemplate = () => {
  const url = `${httpUrl}/admin/templete/listAll`

  return ajax(url)
}
